package com.mls.fivedistrict.dao;

import com.mls.fivedistrict.pojo.Role;
import com.mls.fivedistrict.pojo.RolePermissionDict;
import com.mls.fivedistrict.pojo.UserRole;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户角色关系表 Mapper 接口
 * </p>
 *
 * @author Five Team
 * @since 2018-05-15
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {
    List<RolePermissionDict> selectUserPermissionDict(@Param("userId") Long userId);

    List<Role> selectRolesByUserId(@Param("userId") Long userId);

    List<UserRole> selectByManagerUserId(@Param("managerUserId") Long managerUserId);
}
